package com.foo.wechat.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.foo.wechat.mapper.WxPoultryGrowthMapper;
import com.foo.wechat.domain.WxPoultryGrowth;
import com.foo.wechat.service.IWxPoultryGrowthService;
import com.foo.common.core.text.Convert;

/**
 * 成长记录Service业务层处理
 * 
 * @author foo
 * @date 2025-11-13
 */
@Service
public class WxPoultryGrowthServiceImpl implements IWxPoultryGrowthService 
{
    @Autowired
    private WxPoultryGrowthMapper wxPoultryGrowthMapper;

    /**
     * 查询成长记录
     * 
     * @param growthId 成长记录ID
     * @return 成长记录
     */
    @Override
    public WxPoultryGrowth selectWxPoultryGrowthById(Long growthId)
    {
        return wxPoultryGrowthMapper.selectWxPoultryGrowthById(growthId);
    }

    /**
     * 查询成长记录列表
     * 
     * @param wxPoultryGrowth 成长记录
     * @return 成长记录
     */
    @Override
    public List<WxPoultryGrowth> selectWxPoultryGrowthList(WxPoultryGrowth wxPoultryGrowth)
    {
        return wxPoultryGrowthMapper.selectWxPoultryGrowthList(wxPoultryGrowth);
    }

    /**
     * 新增成长记录
     * 
     * @param wxPoultryGrowth 成长记录
     * @return 结果
     */
    @Override
    public int insertWxPoultryGrowth(WxPoultryGrowth wxPoultryGrowth)
    {
        return wxPoultryGrowthMapper.insertWxPoultryGrowth(wxPoultryGrowth);
    }

    /**
     * 修改成长记录
     * 
     * @param wxPoultryGrowth 成长记录
     * @return 结果
     */
    @Override
    public int updateWxPoultryGrowth(WxPoultryGrowth wxPoultryGrowth)
    {
        return wxPoultryGrowthMapper.updateWxPoultryGrowth(wxPoultryGrowth);
    }

    /**
     * 删除成长记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteWxPoultryGrowthByIds(String ids)
    {
        return wxPoultryGrowthMapper.deleteWxPoultryGrowthByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除成长记录信息
     * 
     * @param growthId 成长记录ID
     * @return 结果
     */
    @Override
    public int deleteWxPoultryGrowthById(Long growthId)
    {
        return wxPoultryGrowthMapper.deleteWxPoultryGrowthById(growthId);
    }
}
